// 创建model
const sequelize = require("../db");
const { DataTypes } = require("sequelize");
const Admin = sequelize.define("Admin", {
    // 用户Id
    loginId: {
        type: DataTypes.STRING,
        allowNull: false,

    },
    // 管理员密码
    loginPwd: {
        type: DataTypes.STRING,
        allowNull: false
    },
    //用户名
    name: {
        type: DataTypes.STRING,
        allowNull: false
    }
}, {
    createdAt: false,
    updatedAt: false,
    paranoid: true
})

module.exports = Admin;